From e6a80bbf9d962e89d937e786f5c7aa653dc14177 Mon Sep 17 00:00:00 2001 From: Matthias Jordan Date: Fri, 1 Aug 2003 23:45:24 +0000 Subject: [PATCH] The editsection link is now longer shown in the printable version of an article. Neither is the "hide TOC" link. --- includes/Skin.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 82cb15c90e..b9a6aa83c9 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1727,11 +1727,16 @@ class Skin { } function tocTable($toc) { - // note to CSS fanatics: putting this in a div does not works -- div won't auto-expand + // note to CSS fanatics: putting this in a div does not work -- div won't auto-expand + global $printable; + + if (!$printable) { + $hideline = " "; + } return "

\n". "".wfMsg("toc")."" . - " " . + $hideline . "
\n". $toc."

\n"; } @@ -1747,8 +1752,10 @@ class Skin { function editSectionLink($section) { + global $printable; global $wgTitle,$wgUser,$oldid; if($oldid) return ""; + if ($printable) return ""; $editurl="§ion={$section}"; $url=$this->makeKnownLink($wgTitle->getPrefixedText(),wfMsg("editsection"),"action=edit".$editurl); return "

[".$url."]
"; -- 2.20.1